package messages.user;

import info.Passenger;
import messages.Message;

public class UPInfoResponseMessage extends Message {
    private boolean isSuccess = false;
    private Passenger newPassenger;

    public Passenger getNewPassenger() {
        return newPassenger;
    }

    public void setNewPassenger(Passenger newPassenger) {
        this.newPassenger = newPassenger;
    }

    public UPInfoResponseMessage() {
        super(MSG_TYPE.MSG_UPINFO_ACK);
    }

    public boolean isSuccess() {
        return isSuccess;
    }

    public void setSuccess(boolean success) {
        isSuccess = success;
    }
}
